*****************************************************
* 				RETURNS MASTER FILE 				*
*****************************************************
local mydate: di %tdDNCY date(c(current_date), "DMY")
capture: log close
log using "O:\returns\returns_REStat_replication_`mydate'.log", replace
cd "W:\returns"
global estimation "W:\returns"


**************************************************************************************

* This file performs the estimations for
* Aghion, Akcigit, Hyytinen & Toivanen : 
* A year older, a year wiser (and farther from the frontier):invention rents and human capital depreciation

**************************************************************************************


do "$estimation\returns_EST_CEM_cluster_2022_08_22"		// estimations clustering at firm-treatment event level
do "$estimation\returns_EST_CEM_firstinv_2022_08_22"	// estimations with first invention of each firm only 
do "$estimation\returns_EST_CEM_noPhD_2022_08_22"		// estimations excluding those individuals who ever get a PhD
do "$estimation\returns_EST_CEM_stem_2022_08_22"		// estimations with stem only educated
do "$estimation\returns_EST_CEM_nostem_2022_08_22"		// estimations with non-stem only educated
do "$estimation\returns_EST_CEM_cluster_ownfirm_2022_08_22"		// estimations using only the obs where employer same as at time of treatment

log close